package liportest.hibenit;

import liportest.repository.TestRepository;
import org.apache.ibatis.annotations.Select;

public interface TestRepositoryHib
    extends TestRepository, InNextId {
    @Select(value = "select companyId from t_house limit 1;")
    Long findCompanyRootDepartment();
}

interface InNextId {
    long nextId();
}

class NextIdImpl implements InNextId {
    @Override
    public long nextId() {
        return 1L;
    }
}


